import hilog from '@ohos.hilog'
import testNapi from 'libentry.so';
import { NapiJsFunction } from './NapiJsFunction';



export class NapiHelper {

  static testDemo(params:string) : void {
    hilog.info(0x0000, 'testTag', '%{public}s', 'called1');
    hilog.info(0x0000, 'testTag', '%{public}s', 'called2');
    hilog.info(0x0000, 'testTag', '%{public}s', 'called3');
  }

  /**
   * 初始化方法
   */
  static init() : void {
    testNapi.registerFunction("NapiJsFunction.callFunction", NapiJsFunction.callFunction);
    testNapi.registerFunction("NapiJsFunction.callFunctionHaveParams", NapiJsFunction.callFunctionHaveParams);
    testNapi.registerFunction("NapiJsFunction.getVerionCode", NapiJsFunction.getVerionCode);
    testNapi.registerFunction("NapiJsFunction.getVerionCodeHaveParams", NapiJsFunction.getVerionCodeHaveParams);
  }




}